﻿@model PasswordRecoveryConfirmModel
@{
    Layout = "~/Views/Shared/_ColumnsThree.cshtml";

    //title
    Html.AddTitleParts(T("PageTitle.PasswordRecovery").Text);
}
@using SmartStore.Web.Models.Customer;
<div class="page password-recovery-page">
    <div class="page-title">
        <h1>@T("Account.PasswordRecovery")</h1>
    </div>
    <div class="clear">
    </div>
    <div class="page-body">
        @if (!String.IsNullOrEmpty(Model.Result))
        {
            <div class="result">
                @Model.Result
            </div>
        }
        @if (!Model.SuccessfullyChanged)
        {
            using (Html.BeginForm())
            {
                
            <fieldset class="form-fields">

                <div class="control-group">
                    @Html.LabelFor(model => model.NewPassword, new { @class = "control-label required", @for = "NewPassword" })
                    <div class="controls">
                        @Html.EditorFor(model => model.NewPassword)
                        @Html.ValidationMessageFor(model => model.NewPassword)
                    </div>
                </div>
                <div class="control-group">
                    @Html.LabelFor(model => model.ConfirmNewPassword, new { @class = "control-label required", @for = "ConfirmNewPassword" })
                    <div class="controls">
                        @Html.EditorFor(model => model.ConfirmNewPassword)
                        @Html.ValidationMessageFor(model => model.ConfirmNewPassword)
                    </div>
                </div>

            </fieldset>
            
            <div class="buttons">
                <input type="submit" name="set-password" class="btn btn-danger" value="@T("Account.PasswordRecovery.ChangePasswordButton")" />
            </div>
            }
        }
    </div>
</div>
